<?php //kpr($view_comment);die;?>
<?php global $base_url?>
<script>
    (function($){
        $(function(){
            $('.recentcomments a').val(function(){
                $(this).text($(this).text().substring(0, 20));
            });
        });
    })(jQuery);
</script>
<div id="recent-comments-2" class="widget widget_recent_comments">
    <ul id="recentcomments">
        <?php foreach($view_comment as $value):?>
            <li class="recentcomments"><span class="comment-author-link"><?php print $value->name;?></span> on <a  href="<?php print $base_url.('/node/').$value->nid;?>"><?php print $value->comment_body['und'][0]['value'];?></a>
            </li>
        <?php endforeach;?>
    </ul>
</div>
